<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>天天生鲜-首页</title>
	<link rel="stylesheet" type="text/css" href="/static/client/css/reset.css">
	<link rel="stylesheet" type="text/css" href="/static/client/css/main.css">
	<script type="text/javascript" src="/static/client/js/jquery-1.12.4.min.js"></script>
	<script type="text/javascript" src="/static/client/js/jquery-ui.min.js"></script>
	<script type="text/javascript" src="/static/client/js/slide.js"></script>
</head>
<body>
<div th:replace="~{/comm/header_con}"/>

<div th:replace="~{/comm/search_bar}"/>
	<div class="navbar_con">
		<div class="navbar">
			<h1 class="fl">全部商品分类</h1>
			<ul class="navlist fl">
				<li><a href="">首页</a></li>
				<li class="interval">|</li>
				<li><a href="">手机生鲜</a></li>
				<li class="interval">|</li>
				<li><a href="">抽奖</a></li>
			</ul>
		</div>
	</div>

	<div class="center_con clearfix">
		<ul class="subnav fl">
			<li th:each="type,typeStat:${goodType}">
				<a th:href="|#model0${typeStat.count}" class="fruit" th:text="${type.typeName}"></a>
			</li>
<!--			<li><a href="#model02" class="seafood">海鲜水产</a></li>-->
<!--			<li><a href="#model03" class="meet">猪牛羊肉</a></li>-->
<!--			<li><a href="#model04" class="egg">禽类蛋品</a></li>-->
<!--			<li><a href="#model05" class="vegetables">新鲜蔬菜</a></li>-->
<!--			<li><a href="#model06" class="ice">速冻食品</a></li>-->
		</ul>
		<div class="slide fl">
			<ul class="slide_pics">
				<li><img src="/static/client/images/slide.jpg" alt="幻灯片"></li>
				<li><img src="/static/client/images/slide02.jpg" alt="幻灯片"></li>
				<li><img src="/static/client/images/slide03.jpg" alt="幻灯片"></li>
				<li><img src="/static/client/images/slide04.jpg" alt="幻灯片"></li>
			</ul>
			<div class="prev"></div>
			<div class="next"></div>
			<ul class="points"></ul>
		</div>
		<div class="adv fl">
			<a href="#"><img src="/static/client/images/adv01.jpg"></a>
			<a href="#"><img src="/static/client/images/adv02.jpg"></a>
		</div>
	</div>

	<div th:each="item,itemStat:${goodsList}" class="list_model">
		<div class="list_title clearfix">
			<h3 class="fl" th:id="|model0${itemStat.count}|" th:text="${item.key}"></h3>
			<div class="subtitle fl">
				<span>|</span>
				<a href="#">鲜芒</a>
				<a href="#">加州提子</a>
				<a href="#">亚马逊牛油果</a>
			</div>
			<a href="list" class="goods_more fr" id="fruit_more">查看更多 ></a>
		</div>

		<div class="goods_con clearfix">
			<div class="goods_banner fl"><img th:src="|/static/client/images/banner0${itemStat.count}.jpg|"></div>
			<ul class="goods_list fl">
				<li th:each="good,goodStat:${item.value}">
					<h4><a th:href="|goodDetail?id=${good.id}|" th:text="${good.goodName}"></a></h4>
					<a th:href="|goodDetail?id=${good.id}|"><img th:src="${good.imgUrl}"></a>
					<div class="prize" th:text="${good.price}"></div>
				</li>
			</ul>
		</div>
	</div>

<div th:replace="~{/comm/footer}"/>
	<script type="text/javascript" src="js/slideshow.js"></script>
	<script type="text/javascript">
		BCSlideshow('focuspic');
		var oFruit = document.getElementById('fruit_more');
		var oShownum = document.getElementById('show_count');

		var hasorder = localStorage.getItem('order_finish');

		if(hasorder)
		{
			oShownum.innerHTML = '2';
		}

		oFruit.onclick = function(){
			window.location.href = 'list.html';
		}
	</script>
</body>
</html>
